/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 实体类
 * @author Blade
 * @since 2023-04-12
 */
@Data
@TableName("blade_product")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Product对象", description = "Product对象")
@NoArgsConstructor
@AllArgsConstructor
public class Product extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 产品名称
	 */
	@ApiModelProperty(value = "产品名称")
	private String name;

	/** 产品类型字典 */
	@ApiModelProperty(value = "通过产品类型字典表")
	@JsonSerialize(using = ToStringSerializer.class)
	private String type;

	/**
	 * 网络地址
	 */
	@ApiModelProperty(value = "网络地址")
	private String ipAddr;
	/**
	 * 端口号
	 */
	@ApiModelProperty(value = "端口号")
	private Integer port;
	/** 字典表更新 */
	@ApiModelProperty(value = "字典表更新")
	private Integer protocol;

	private String userName;
	private String passwd;

	/** 0在线，1离线 */
	@ApiModelProperty(value = "0在线，1离线")
	private Integer online;
}
